package com.kehutong.house.entity;

import com.kehutong.common.entity.DataEntity;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.annotation.UnSave;
import org.coraframework.orm.util.IDType;

import java.math.BigDecimal;
import java.util.List;

/**
 * 空间信息
 */
@Table(value="t_space", multi=true, idType=IDType.TIMESTAMP)
public class Space extends DataEntity {

	private static final long serialVersionUID = 5501827289826182316L;

	protected Space(String id) {
		super(id);
	}
	
	@Column(comment="小区编号")
	private String communityNo;

	@Column(comment="小区名称")
	private String communityName;
	
	@Column(comment="空间名称")
	private String name;

	@Column(comment="空间类型")
	private String classNo;

	@Column(comment="空间面积")
	private BigDecimal area;

	@Column(comment = "管家编号")
	private List<String> employeeNos;

	@Column(comment = "创建人")
	private String create_by;

	@Column(comment = "创建人")
	private String createUserId;

	@Column(comment = "创建人部门")
	private List<String> createDepartment;

	@Column(comment = "创建人部门的上级部门")
	private List<String> createChildDepartment;

	@UnSave
	private List<String> employeeNames;
	
	@JSONField(serialize=false)
	@Column(comment="逻辑删除")
	private boolean deleted;

	@Column(comment="启用状态")
	private boolean enable;

	public String getCommunityNo() {
		return communityNo;
	}

	public void setCommunityNo(String communityNo) {
		this.communityNo = communityNo;
	}

	public String getCommunityName() {
		return communityName;
	}

	public void setCommunityName(String communityName) {
		this.communityName = communityName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getClassNo() {
		return classNo;
	}

	public void setClassNo(String classNo) {
		this.classNo = classNo;
	}

	public BigDecimal getArea() {
		return area;
	}

	public void setArea(BigDecimal area) {
		this.area = area;
	}

	public List<String> getEmployeeNos() {
		return employeeNos;
	}

	public void setEmployeeNos(List<String> employeeNos) {
		this.employeeNos = employeeNos;
	}

	public String getCreate_by() {
		return create_by;
	}

	public void setCreate_by(String create_by) {
		this.create_by = create_by;
	}

	public String getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}

	public List<String> getCreateDepartment() {
		return createDepartment;
	}

	public void setCreateDepartment(List<String> createDepartment) {
		this.createDepartment = createDepartment;
	}

	public List<String> getCreateChildDepartment() {
		return createChildDepartment;
	}

	public void setCreateChildDepartment(List<String> createChildDepartment) {
		this.createChildDepartment = createChildDepartment;
	}

	public List<String> getEmployeeNames() {
		return employeeNames;
	}

	public void setEmployeeNames(List<String> employeeNames) {
		this.employeeNames = employeeNames;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}

	public boolean isEnable() {
		return enable;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}
}
